#ifndef __MISC_TOOLS_H__
#define __MISC_TOOLS_H__

#include <stdint.h>

#include "CRC_Check.h"




/**
 * @brief
 * 
 * @param s 
 * @return uint32_t length of the new string.
 */
uint32_t remove_space_enter(char *s);


void str2hex(char *str, char * hex, uint8_t hex_len);

//uint16_t crc16_modbus(uint8_t *pmodbus, uint16_t DataLen);
uint16_t iotv30_crc16_modbus(uint8_t *pmodbus, uint16_t DataLen);

//#define iotv30_crc16_modbus       CRC16_modbus_table16_little_end


#endif
